package com.fc.gwt.client;

import com.fc.gwt.client.footer.FooterPanel;
import com.fc.gwt.client.header.menu.MenuPanel;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Az app belépési pontja. Ez az osztály felelős az alap struktúra kialakításáért.
 * 
 * @author acs
 *
 */
public class Main implements EntryPoint {
	private RootPanel headerPanel;
	private RootPanel contentPanel;
	private RootPanel footerPanel;
	
	public Main() {
		super();
	}
	
	public void onModuleLoad() {
		initMenu();
		initContent();
		initFooter();
	}
	
	private void initMenu() {
		headerPanel = RootPanel.get("headerPanel");
		headerPanel.add(new MenuPanel());
	}
	
	private void initContent() {
		contentPanel = RootPanel.get("contentPanel");
	}
	
	private void initFooter() {
		footerPanel = RootPanel.get("footerPanel");
		footerPanel.add(new FooterPanel());
	}
}
